package com.example.shortmessage.contract;

import android.app.Activity;

import com.example.shortmessage.base.BaseAbstractPresenter;
import com.example.shortmessage.base.IBaseView;
import com.example.shortmessage.data.entity.User;

public interface AccountContract {
    interface View<P extends AccountContract.Presenter> extends IBaseView<P> {

    }

    abstract class Presenter<V extends AccountContract.View> extends BaseAbstractPresenter<V> {

        public abstract String getTitle();

        public abstract String getHint();

        public abstract String getButton();

        /**
         *
         * @param content 输入框的内容
         * @return 失败信息 or null
         */
        public abstract String submit(String content, Activity activity);

    }

    interface Model {
        User query(String username);
    }
}
